package com.ourteam.workspace.dao;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;
import org.apache.commons.lang.StringUtils;

/**
 * Template Name : DAO查询对象 Template Version : 1 Template Last Modfiy Date : Sat Aug 19 10:06:32 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:29 Warning ! This file will be overwrite when
 * regenerate !
 */
public class WorkspaceConfigDAOQueryBean extends BaseQueryBean {

  public WorkspaceConfigDAOQueryBean() {
    super();
  }

  public WorkspaceConfigDAOQueryBean(BaseQueryBean aQueryBean) {
    super(aQueryBean);
  }

  public WorkspaceConfigDAOQueryBean(BaseQueryBean aQueryBean, Map tableReplaceMap) {
    super(aQueryBean, tableReplaceMap);
  }

  public Criteria createCriteria() {

    Criteria criteria = createCriteriaInternal();
    if (oredCriteria.size() == 0) {
      oredCriteria.add(criteria);
    }
    return criteria;
  }

  protected Criteria createCriteriaInternal() {
    return new Criteria(this);
  }

  public void addIdSelectProperty() {
    addIdSelectProperty("id");
  }

  public void addIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceConfigDAO.Id, aAlias);
    } else {
      addSelectProperty(IWorkspaceConfigDAO.Id, "id");
    }
  }

  public void addConfigItemSelectProperty() {
    addConfigItemSelectProperty("configItem");
  }

  public void addConfigItemSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceConfigDAO.ConfigItem, aAlias);
    } else {
      addSelectProperty(IWorkspaceConfigDAO.ConfigItem, "configItem");
    }
  }

  public void addDescriptionSelectProperty() {
    addDescriptionSelectProperty("description");
  }

  public void addDescriptionSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceConfigDAO.Description, aAlias);
    } else {
      addSelectProperty(IWorkspaceConfigDAO.Description, "description");
    }
  }

  public void addParentConfigIdSelectProperty() {
    addParentConfigIdSelectProperty("parentConfigId");
  }

  public void addParentConfigIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceConfigDAO.ParentConfigId, aAlias);
    } else {
      addSelectProperty(IWorkspaceConfigDAO.ParentConfigId, "parentConfigId");
    }
  }

  public void addStatusSelectProperty() {
    addStatusSelectProperty("status");
  }

  public void addStatusSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceConfigDAO.Status, aAlias);
    } else {
      addSelectProperty(IWorkspaceConfigDAO.Status, "status");
    }
  }

  public void addConfigFormSelectProperty() {
    addConfigFormSelectProperty("configForm");
  }

  public void addConfigFormSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceConfigDAO.ConfigForm, aAlias);
    } else {
      addSelectProperty(IWorkspaceConfigDAO.ConfigForm, "configForm");
    }
  }

  public void addConfigNameSelectProperty() {
    addConfigNameSelectProperty("configName");
  }

  public void addConfigNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IWorkspaceConfigDAO.ConfigName, aAlias);
    } else {
      addSelectProperty(IWorkspaceConfigDAO.ConfigName, "configName");
    }
  }

  public void addAllSelectProperties() {

    addIdSelectProperty();

    addConfigItemSelectProperty();

    addDescriptionSelectProperty();

    addParentConfigIdSelectProperty();

    addStatusSelectProperty();

    addConfigFormSelectProperty();

    addConfigNameSelectProperty();
  }

  public static class Criteria extends BaseWhereCriterion<WorkspaceConfigDAOQueryBean> {

    protected Criteria(WorkspaceConfigDAOQueryBean aParentObject) {
      super(aParentObject);
    }

    public Criteria andIdIsNull() {
      addCriterion(IWorkspaceConfigDAO.Id + " is null");
      return this;
    }

    public Criteria andIdIsNotNull() {
      addCriterion(IWorkspaceConfigDAO.Id + " is not null");
      return this;
    }

    public Criteria andIdIsNotEmpty() {
      addCriterion(
          IWorkspaceConfigDAO.Id + " is not null AND " + IWorkspaceConfigDAO.Id + " <> ''");
      return this;
    }

    public Criteria andIdIsEmpty() {
      addCriterion(
          "(" + IWorkspaceConfigDAO.Id + " is null OR " + IWorkspaceConfigDAO.Id + " = '')");
      return this;
    }

    public Criteria andIdEqualTo(long value) {
      return andIdEqualTo(Long.valueOf(value));
    }

    public Criteria andIdEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.Id + " = ", value, "id");
      return this;
    }

    public Criteria andIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Id);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Id + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotEqualTo(long value) {
      return andIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andIdNotEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.Id + " <>", value, "id");
      return this;
    }

    public Criteria andIdNotEqualToOrIsNull(long value) {
      return andIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceConfigDAO.Id + " is null OR " + IWorkspaceConfigDAO.Id + " <>", value, "id");
      return this;
    }

    public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Id);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Id + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThan(long value) {
      return andIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andIdGreaterThan(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.Id + " >", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Id);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Id + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(long value) {
      return andIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.Id + " >=", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Id);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Id + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThan(long value) {
      return andIdLessThan(Long.valueOf(value));
    }

    public Criteria andIdLessThan(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.Id + " <", value, "id");
      return this;
    }

    public Criteria andIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Id);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Id + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(long value) {
      return andIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.Id + " <=", value, "id");
      return this;
    }

    public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Id);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Id + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdIn(long[] values) {
      if (values.length == 1) {
        return andIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andIdEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andIdEqualTo(values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.Id + " in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo(values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.Id + " not in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Id + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Id + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdBetween(long value1, long value2) {
      addCriterion(IWorkspaceConfigDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IWorkspaceConfigDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(long value1, long value2) {
      addCriterion(IWorkspaceConfigDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IWorkspaceConfigDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andConfigItemIsNull() {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " is null");
      return this;
    }

    public Criteria andConfigItemIsNotNull() {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " is not null");
      return this;
    }

    public Criteria andConfigItemIsNotEmpty() {
      addCriterion(
          IWorkspaceConfigDAO.ConfigItem
              + " is not null AND "
              + IWorkspaceConfigDAO.ConfigItem
              + " <> ''");
      return this;
    }

    public Criteria andConfigItemIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceConfigDAO.ConfigItem
              + " is null OR "
              + IWorkspaceConfigDAO.ConfigItem
              + " = '')");
      return this;
    }

    public Criteria andConfigItemEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigItem + " = ", value, "configItem");
      return this;
    }

    public Criteria andConfigItemEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigItem);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigItemEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigItemNotEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigItem + " <>", value, "configItem");
      return this;
    }

    public Criteria andConfigItemNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceConfigDAO.ConfigItem + " is null OR " + IWorkspaceConfigDAO.ConfigItem + " <>",
          value,
          "configItem");
      return this;
    }

    public Criteria andConfigItemNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigItem);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigItemNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigItemGreaterThan(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigItem + " >", value, "configItem");
      return this;
    }

    public Criteria andConfigItemGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigItem);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigItemGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigItemGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigItem + " >=", value, "configItem");
      return this;
    }

    public Criteria andConfigItemGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigItem);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigItemGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigItemLessThan(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigItem + " <", value, "configItem");
      return this;
    }

    public Criteria andConfigItemLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigItem);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigItemLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigItemLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigItem + " <=", value, "configItem");
      return this;
    }

    public Criteria andConfigItemLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigItem);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigItemLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigItemLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " like", buffer.toString(), "configItem");
      return this;
    }

    public Criteria andConfigItemNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " not like", buffer.toString(), "configItem");
      return this;
    }

    public Criteria andConfigItemIn(List<String> values) {

      if (values.size() == 1) {
        return andConfigItemEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.ConfigItem + " in", values, "configItem");
        return this;
      }
    }

    public Criteria andConfigItemNotIn(List<String> values) {
      if (values.size() == 1) {
        return andConfigItemNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.ConfigItem + " not in", values, "configItem");
        return this;
      }
    }

    public Criteria andConfigItemIn(String[] values) {

      if (values.length == 1) {
        return andConfigItemEqualTo(values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.ConfigItem + " in", Arrays.asList(values), "configItem");
        return this;
      }
    }

    public Criteria andConfigItemNotIn(String[] values) {
      if (values.length == 1) {
        return andConfigItemNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceConfigDAO.ConfigItem + " not in", Arrays.asList(values), "configItem");
        return this;
      }
    }

    public Criteria andConfigItemIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigItemNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigItemBetween(String value1, String value2) {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " between", value1, value2, "configItem");
      return this;
    }

    public Criteria andConfigItemNotBetween(String value1, String value2) {
      addCriterion(IWorkspaceConfigDAO.ConfigItem + " not between", value1, value2, "configItem");
      return this;
    }

    public Criteria andDescriptionIsNull() {
      addCriterion(IWorkspaceConfigDAO.Description + " is null");
      return this;
    }

    public Criteria andDescriptionIsNotNull() {
      addCriterion(IWorkspaceConfigDAO.Description + " is not null");
      return this;
    }

    public Criteria andDescriptionIsNotEmpty() {
      addCriterion(
          IWorkspaceConfigDAO.Description
              + " is not null AND "
              + IWorkspaceConfigDAO.Description
              + " <> ''");
      return this;
    }

    public Criteria andDescriptionIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceConfigDAO.Description
              + " is null OR "
              + IWorkspaceConfigDAO.Description
              + " = '')");
      return this;
    }

    public Criteria andDescriptionEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.Description + " = ", value, "description");
      return this;
    }

    public Criteria andDescriptionEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Description);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Description + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionNotEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.Description + " <>", value, "description");
      return this;
    }

    public Criteria andDescriptionNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceConfigDAO.Description
              + " is null OR "
              + IWorkspaceConfigDAO.Description
              + " <>",
          value,
          "description");
      return this;
    }

    public Criteria andDescriptionNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Description);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Description + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionGreaterThan(String value) {

      addCriterion(IWorkspaceConfigDAO.Description + " >", value, "description");
      return this;
    }

    public Criteria andDescriptionGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Description);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Description + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.Description + " >=", value, "description");
      return this;
    }

    public Criteria andDescriptionGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Description);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Description + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionLessThan(String value) {

      addCriterion(IWorkspaceConfigDAO.Description + " <", value, "description");
      return this;
    }

    public Criteria andDescriptionLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Description);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Description + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.Description + " <=", value, "description");
      return this;
    }

    public Criteria andDescriptionLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Description);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDescriptionLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Description + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceConfigDAO.Description + " like", buffer.toString(), "description");
      return this;
    }

    public Criteria andDescriptionNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceConfigDAO.Description + " not like", buffer.toString(), "description");
      return this;
    }

    public Criteria andDescriptionIn(List<String> values) {

      if (values.size() == 1) {
        return andDescriptionEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.Description + " in", values, "description");
        return this;
      }
    }

    public Criteria andDescriptionNotIn(List<String> values) {
      if (values.size() == 1) {
        return andDescriptionNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.Description + " not in", values, "description");
        return this;
      }
    }

    public Criteria andDescriptionIn(String[] values) {

      if (values.length == 1) {
        return andDescriptionEqualTo(values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.Description + " in", Arrays.asList(values), "description");
        return this;
      }
    }

    public Criteria andDescriptionNotIn(String[] values) {
      if (values.length == 1) {
        return andDescriptionNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceConfigDAO.Description + " not in", Arrays.asList(values), "description");
        return this;
      }
    }

    public Criteria andDescriptionIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Description + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Description + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDescriptionBetween(String value1, String value2) {
      addCriterion(IWorkspaceConfigDAO.Description + " between", value1, value2, "description");
      return this;
    }

    public Criteria andDescriptionNotBetween(String value1, String value2) {
      addCriterion(IWorkspaceConfigDAO.Description + " not between", value1, value2, "description");
      return this;
    }

    public Criteria andParentConfigIdIsNull() {
      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " is null");
      return this;
    }

    public Criteria andParentConfigIdIsNotNull() {
      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " is not null");
      return this;
    }

    public Criteria andParentConfigIdIsNotEmpty() {
      addCriterion(
          IWorkspaceConfigDAO.ParentConfigId
              + " is not null AND "
              + IWorkspaceConfigDAO.ParentConfigId
              + " <> ''");
      return this;
    }

    public Criteria andParentConfigIdIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceConfigDAO.ParentConfigId
              + " is null OR "
              + IWorkspaceConfigDAO.ParentConfigId
              + " = '')");
      return this;
    }

    public Criteria andParentConfigIdEqualTo(long value) {
      return andParentConfigIdEqualTo(Long.valueOf(value));
    }

    public Criteria andParentConfigIdEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " = ", value, "parentConfigId");
      return this;
    }

    public Criteria andParentConfigIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ParentConfigId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andParentConfigIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andParentConfigIdNotEqualTo(long value) {
      return andParentConfigIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andParentConfigIdNotEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " <>", value, "parentConfigId");
      return this;
    }

    public Criteria andParentConfigIdNotEqualToOrIsNull(long value) {
      return andParentConfigIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andParentConfigIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IWorkspaceConfigDAO.ParentConfigId
              + " is null OR "
              + IWorkspaceConfigDAO.ParentConfigId
              + " <>",
          value,
          "parentConfigId");
      return this;
    }

    public Criteria andParentConfigIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ParentConfigId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andParentConfigIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andParentConfigIdGreaterThan(long value) {
      return andParentConfigIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andParentConfigIdGreaterThan(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " >", value, "parentConfigId");
      return this;
    }

    public Criteria andParentConfigIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ParentConfigId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andParentConfigIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andParentConfigIdGreaterThanOrEqualTo(long value) {
      return andParentConfigIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andParentConfigIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " >=", value, "parentConfigId");
      return this;
    }

    public Criteria andParentConfigIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ParentConfigId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andParentConfigIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andParentConfigIdLessThan(long value) {
      return andParentConfigIdLessThan(Long.valueOf(value));
    }

    public Criteria andParentConfigIdLessThan(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " <", value, "parentConfigId");
      return this;
    }

    public Criteria andParentConfigIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ParentConfigId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andParentConfigIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andParentConfigIdLessThanOrEqualTo(long value) {
      return andParentConfigIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andParentConfigIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " <=", value, "parentConfigId");
      return this;
    }

    public Criteria andParentConfigIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ParentConfigId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andParentConfigIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andParentConfigIdIn(long[] values) {
      if (values.length == 1) {
        return andParentConfigIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.ParentConfigId + " in", values, "parentConfigId");
        return this;
      }
    }

    public Criteria andParentConfigIdNotIn(long[] values) {
      if (values.length == 1) {
        return andParentConfigIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.ParentConfigId + " not in", values, "parentConfigId");
        return this;
      }
    }

    public Criteria andParentConfigIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andParentConfigIdEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.ParentConfigId + " in", values, "parentConfigId");
        return this;
      }
    }

    public Criteria andParentConfigIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andParentConfigIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.ParentConfigId + " not in", values, "parentConfigId");
        return this;
      }
    }

    public Criteria andParentConfigIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andParentConfigIdEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceConfigDAO.ParentConfigId + " in", Arrays.asList(values), "parentConfigId");
        return this;
      }
    }

    public Criteria andParentConfigIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andParentConfigIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceConfigDAO.ParentConfigId + " not in",
            Arrays.asList(values),
            "parentConfigId");
        return this;
      }
    }

    public Criteria andParentConfigIdIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andParentConfigIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ParentConfigId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andParentConfigIdBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceConfigDAO.ParentConfigId + " between", value1, value2, "parentConfigId");
      return this;
    }

    public Criteria andParentConfigIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceConfigDAO.ParentConfigId + " between", value1, value2, "parentConfigId");
      return this;
    }

    public Criteria andParentConfigIdNotBetween(long value1, long value2) {
      addCriterion(
          IWorkspaceConfigDAO.ParentConfigId + " not between", value1, value2, "parentConfigId");
      return this;
    }

    public Criteria andParentConfigIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IWorkspaceConfigDAO.ParentConfigId + " not between", value1, value2, "parentConfigId");
      return this;
    }

    public Criteria andStatusIsNull() {
      addCriterion(IWorkspaceConfigDAO.Status + " is null");
      return this;
    }

    public Criteria andStatusIsNotNull() {
      addCriterion(IWorkspaceConfigDAO.Status + " is not null");
      return this;
    }

    public Criteria andStatusIsNotEmpty() {
      addCriterion(
          IWorkspaceConfigDAO.Status + " is not null AND " + IWorkspaceConfigDAO.Status + " <> ''");
      return this;
    }

    public Criteria andStatusIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceConfigDAO.Status
              + " is null OR "
              + IWorkspaceConfigDAO.Status
              + " = '')");
      return this;
    }

    public Criteria andStatusEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.Status + " = ", value, "status");
      return this;
    }

    public Criteria andStatusEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Status);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Status + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusNotEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.Status + " <>", value, "status");
      return this;
    }

    public Criteria andStatusNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceConfigDAO.Status + " is null OR " + IWorkspaceConfigDAO.Status + " <>",
          value,
          "status");
      return this;
    }

    public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Status);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Status + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusGreaterThan(String value) {

      addCriterion(IWorkspaceConfigDAO.Status + " >", value, "status");
      return this;
    }

    public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Status);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Status + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.Status + " >=", value, "status");
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Status);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Status + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLessThan(String value) {

      addCriterion(IWorkspaceConfigDAO.Status + " <", value, "status");
      return this;
    }

    public Criteria andStatusLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Status);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Status + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.Status + " <=", value, "status");
      return this;
    }

    public Criteria andStatusLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.Status);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Status + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceConfigDAO.Status + " like", buffer.toString(), "status");
      return this;
    }

    public Criteria andStatusNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceConfigDAO.Status + " not like", buffer.toString(), "status");
      return this;
    }

    public Criteria andStatusIn(List<String> values) {

      if (values.size() == 1) {
        return andStatusEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.Status + " in", values, "status");
        return this;
      }
    }

    public Criteria andStatusNotIn(List<String> values) {
      if (values.size() == 1) {
        return andStatusNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.Status + " not in", values, "status");
        return this;
      }
    }

    public Criteria andStatusIn(String[] values) {

      if (values.length == 1) {
        return andStatusEqualTo(values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.Status + " in", Arrays.asList(values), "status");
        return this;
      }
    }

    public Criteria andStatusNotIn(String[] values) {
      if (values.length == 1) {
        return andStatusNotEqualTo(values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.Status + " not in", Arrays.asList(values), "status");
        return this;
      }
    }

    public Criteria andStatusIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Status + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.Status + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusBetween(String value1, String value2) {
      addCriterion(IWorkspaceConfigDAO.Status + " between", value1, value2, "status");
      return this;
    }

    public Criteria andStatusNotBetween(String value1, String value2) {
      addCriterion(IWorkspaceConfigDAO.Status + " not between", value1, value2, "status");
      return this;
    }

    public Criteria andConfigFormIsNull() {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " is null");
      return this;
    }

    public Criteria andConfigFormIsNotNull() {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " is not null");
      return this;
    }

    public Criteria andConfigFormIsNotEmpty() {
      addCriterion(
          IWorkspaceConfigDAO.ConfigForm
              + " is not null AND "
              + IWorkspaceConfigDAO.ConfigForm
              + " <> ''");
      return this;
    }

    public Criteria andConfigFormIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceConfigDAO.ConfigForm
              + " is null OR "
              + IWorkspaceConfigDAO.ConfigForm
              + " = '')");
      return this;
    }

    public Criteria andConfigFormEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigForm + " = ", value, "configForm");
      return this;
    }

    public Criteria andConfigFormEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigForm);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigFormEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigFormNotEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigForm + " <>", value, "configForm");
      return this;
    }

    public Criteria andConfigFormNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceConfigDAO.ConfigForm + " is null OR " + IWorkspaceConfigDAO.ConfigForm + " <>",
          value,
          "configForm");
      return this;
    }

    public Criteria andConfigFormNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigForm);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigFormNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigFormGreaterThan(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigForm + " >", value, "configForm");
      return this;
    }

    public Criteria andConfigFormGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigForm);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigFormGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigFormGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigForm + " >=", value, "configForm");
      return this;
    }

    public Criteria andConfigFormGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigForm);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigFormGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigFormLessThan(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigForm + " <", value, "configForm");
      return this;
    }

    public Criteria andConfigFormLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigForm);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigFormLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigFormLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigForm + " <=", value, "configForm");
      return this;
    }

    public Criteria andConfigFormLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigForm);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigFormLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigFormLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " like", buffer.toString(), "configForm");
      return this;
    }

    public Criteria andConfigFormNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " not like", buffer.toString(), "configForm");
      return this;
    }

    public Criteria andConfigFormIn(List<String> values) {

      if (values.size() == 1) {
        return andConfigFormEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.ConfigForm + " in", values, "configForm");
        return this;
      }
    }

    public Criteria andConfigFormNotIn(List<String> values) {
      if (values.size() == 1) {
        return andConfigFormNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.ConfigForm + " not in", values, "configForm");
        return this;
      }
    }

    public Criteria andConfigFormIn(String[] values) {

      if (values.length == 1) {
        return andConfigFormEqualTo(values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.ConfigForm + " in", Arrays.asList(values), "configForm");
        return this;
      }
    }

    public Criteria andConfigFormNotIn(String[] values) {
      if (values.length == 1) {
        return andConfigFormNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceConfigDAO.ConfigForm + " not in", Arrays.asList(values), "configForm");
        return this;
      }
    }

    public Criteria andConfigFormIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigFormNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigFormBetween(String value1, String value2) {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " between", value1, value2, "configForm");
      return this;
    }

    public Criteria andConfigFormNotBetween(String value1, String value2) {
      addCriterion(IWorkspaceConfigDAO.ConfigForm + " not between", value1, value2, "configForm");
      return this;
    }

    public Criteria andConfigNameIsNull() {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " is null");
      return this;
    }

    public Criteria andConfigNameIsNotNull() {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " is not null");
      return this;
    }

    public Criteria andConfigNameIsNotEmpty() {
      addCriterion(
          IWorkspaceConfigDAO.ConfigName
              + " is not null AND "
              + IWorkspaceConfigDAO.ConfigName
              + " <> ''");
      return this;
    }

    public Criteria andConfigNameIsEmpty() {
      addCriterion(
          "("
              + IWorkspaceConfigDAO.ConfigName
              + " is null OR "
              + IWorkspaceConfigDAO.ConfigName
              + " = '')");
      return this;
    }

    public Criteria andConfigNameEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigName + " = ", value, "configName");
      return this;
    }

    public Criteria andConfigNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigNameEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigNameNotEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigName + " <>", value, "configName");
      return this;
    }

    public Criteria andConfigNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IWorkspaceConfigDAO.ConfigName + " is null OR " + IWorkspaceConfigDAO.ConfigName + " <>",
          value,
          "configName");
      return this;
    }

    public Criteria andConfigNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigNameGreaterThan(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigName + " >", value, "configName");
      return this;
    }

    public Criteria andConfigNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigNameGreaterThanOrEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigName + " >=", value, "configName");
      return this;
    }

    public Criteria andConfigNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigNameLessThan(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigName + " <", value, "configName");
      return this;
    }

    public Criteria andConfigNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigNameLessThanOrEqualTo(String value) {

      addCriterion(IWorkspaceConfigDAO.ConfigName + " <=", value, "configName");
      return this;
    }

    public Criteria andConfigNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IWorkspaceConfigDAO.ConfigName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andConfigNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceConfigDAO.ConfigName + " like", buffer.toString(), "configName");
      return this;
    }

    public Criteria andConfigNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IWorkspaceConfigDAO.ConfigName + " not like", buffer.toString(), "configName");
      return this;
    }

    public Criteria andConfigNameIn(List<String> values) {

      if (values.size() == 1) {
        return andConfigNameEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.ConfigName + " in", values, "configName");
        return this;
      }
    }

    public Criteria andConfigNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andConfigNameNotEqualTo(values.get(0));
      } else {
        addCriterion(IWorkspaceConfigDAO.ConfigName + " not in", values, "configName");
        return this;
      }
    }

    public Criteria andConfigNameIn(String[] values) {

      if (values.length == 1) {
        return andConfigNameEqualTo(values[0]);
      } else {
        addCriterion(IWorkspaceConfigDAO.ConfigName + " in", Arrays.asList(values), "configName");
        return this;
      }
    }

    public Criteria andConfigNameNotIn(String[] values) {
      if (values.length == 1) {
        return andConfigNameNotEqualTo(values[0]);
      } else {
        addCriterion(
            IWorkspaceConfigDAO.ConfigName + " not in", Arrays.asList(values), "configName");
        return this;
      }
    }

    public Criteria andConfigNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigNameNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andConfigNameBetween(String value1, String value2) {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " between", value1, value2, "configName");
      return this;
    }

    public Criteria andConfigNameNotBetween(String value1, String value2) {
      addCriterion(IWorkspaceConfigDAO.ConfigName + " not between", value1, value2, "configName");
      return this;
    }
  }
}
